home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / os / sprite.X11R3 / RCS / osglobals.c,v < prev    next >
Encoding:
Text File  |  1989-10-26  |  2.7 KB  |  132 lines

  1. head     1.4;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.4
  10. date     89.10.08.17.03.30;  author tve;  state Exp;
  11. branches ;
  12. next     1.3;
  13.  
  14. 1.3
  15. date     89.10.04.19.17.41;  author tve;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     87.06.30.19.08.58;  author deboor;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     87.06.11.17.47.20;  author deboor;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @Global variables for the sprite OS layer
  32. @
  33.  
  34.  
  35. 1.4
  36. log
  37. @added definition of allStreams
  38. @
  39. text
  40. @/*-
  41.  * osglobals.c --
  42.  *    Declarations of variables global to the os layer.
  43.  *
  44.  * Copyright (c) 1987 by the Regents of the University of California
  45.  * Copyright (c) 1987 by Adam de Boor, UC Berkeley
  46.  *
  47.  * Permission to use, copy, modify, and distribute this
  48.  * software and its documentation for any purpose and without
  49.  * fee is hereby granted, provided that the above copyright
  50.  * notice appear in all copies.  The University of California
  51.  * makes no representations about the suitability of this
  52.  * software for any purpose.  It is provided "as is" without
  53.  * express or implied warranty.
  54.  *
  55.  *
  56.  */
  57. #ifndef lint
  58. static char rcsid[] =
  59. "$Header: /mic/X11R3/src/cmds/Xsprite/os/sprite/RCS/osglobals.c,v 1.3 89/10/04 19:17:41 tve Exp $ SPRITE (Berkeley)";
  60. #endif lint
  61.  
  62. #include    "spriteos.h"
  63.  
  64. /*
  65.  * Bit masks for Fs_Select in scheduler
  66.  */
  67. int    *ClientsWithInputMask,    /* Clients with input waiting in their
  68.                  * buffers */
  69.     *LastSelectMask,        /* Result of last Fs_Select call */
  70.     *EnabledDevicesMask,    /* All enabled devices */
  71.     *SavedAllClientsMask,    /* AllClients mask during grab */
  72.     *AllClientsMask,        /* All active clients */
  73.     *SavedAllStreamsMask,    /* AllStreams mask during grab */
  74.     *AllStreamsMask;        /* All active streams (includes devices) */
  75.  
  76. int    NumActiveStreams,       /* Number of active streams */
  77.     MaxClients = MAXCLIENTS,
  78.     PseudoDevice;            /* Stream ID of X pseudo-device */
  79.  
  80. char    whichByteIsFirst;    /* Local byte order ('l' or 'B') */
  81.  
  82. Bool    GrabDone = FALSE;       /* TRUE if listening to only one client */
  83. ClientPtr grabbingClient;
  84. List_Links    allStreams;    /* All open streams */
  85. @
  86.  
  87.  
  88. 1.3
  89. log
  90. @init allStreams in OsInit function
  91. @
  92. text
  93. @d20 1
  94. a20 1
  95. "$Header: osglobals.c,v 1.2 87/06/30 19:08:58 deboor Exp $ SPRITE (Berkeley)";
  96. d45 1
  97. @
  98.  
  99.  
  100. 1.2
  101. log
  102. @Adapted to beta-1 and its ClientPtrs
  103. @
  104. text
  105. @d20 1
  106. a20 1
  107. "$Header: osglobals.c,v 1.1 87/06/11 17:47:20 deboor Exp $ SPRITE (Berkeley)";
  108. a44 2
  109.  
  110. Lst    allStreams = NILLST;    /* List of all open streams */
  111. @
  112.  
  113.  
  114. 1.1
  115. log
  116. @Initial revision
  117. @
  118. text
  119. @d20 1
  120. a20 1
  121. "$Header$ SPRITE (Berkeley)";
  122. a37 2
  123.     FirstClient = 1,        /* First foreign client */
  124.     LastClient,            /* Last client registered */
  125. d44 1
  126. a44 1
  127. int    grabbingClientID;
  128. d46 1
  129. a46 1
  130. int    *StreamToClient;
  131. @
  132.